﻿using Architeture.Domain;
using Architeture.Domain.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.Domain.Service
{
    public interface IRoleService
    {
        Task<int> RoleAdd(RoleInfo a);
        Task<int> RoleRemove(int id);
        Task<page> RoleGetAll(int pageindex, int pagesize,string? Name);
        Task<RoleInfo> RoleGetById(int id);
        Task<int> RoleUpd(RoleInfo a);
        Task<List<RoleInfoDTO>> GetRoleInfo();
    }
}
